package br.com.aloprojetoandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class AloProjetoAndroidActivity extends Activity {
   private ListView lista;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        this.lista = (ListView) findViewById(R.id.lista);
        ArrayAdapter<CharSequence> adapter = new ArrayAdapter<CharSequence>(this, android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.nomes));
        
        
        
        this.lista.setAdapter(adapter);
        
    }
}